# -- coding=utf-8 --
import base64

import requests
SERVER_URL = 'http://192.168.2.90:8888/infer'

def ssd_req():
    inputs = []
    input_file = "cat.0.jpg"
    with open(input_file, 'rb') as f:
        inputs.append({"data": base64.b64encode(f.read()).decode()})
    res = requests.post(SERVER_URL, json={"inputs": inputs}).json()
   
    print(res)


if __name__ == '__main__':
    ssd_req()
